package com.bestvike.stone.spring.trace;

import org.springframework.stereotype.Component;

/**
 * Created by 许崇雷 on 2017-12-27.
 */
@Component
public final class TracerUtils {
    private static ITracer tracer;

    TracerUtils(ITracer tracerInstance) {
        tracer = tracerInstance;
    }

    public static ISpan createSpan() {
        return tracer.createSpan();
    }

    public static ISpan createContinueSpan(ISpan span) {
        return tracer.createContinueSpan(span);
    }
}
